package jee.boot.module.main.entity;


import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jee.boot.common.basic.DataEntity;

import java.util.List;

/**
 * 示例-主从表操作(主表)Entity
 * @author 
 * @version 2019-06-19
 */
@ApiModel(description = "示例-主从表操作(主表)")
public class DemoMain extends DataEntity<DemoMain> {
	
	private static final long serialVersionUID = 1L;
//	@ApiModelProperty(value = "归属公司")
//	private SysOffice company;		// 归属公司
//	@ApiModelProperty(value = "归属部门")
//	private SysOffice office;		// 归属部门
//	@ApiModelProperty(value = "用户")
//	private SysUser user;		// 用户
	@ApiModelProperty(value = "数据状态")
	private String status;		// 数据状态

	@ApiModelProperty(value = "子表列表")
	private List<DemoChild> demoChildList = Lists.newArrayList();		// 子表列表
	
	public DemoMain() {
		super();
	}

	public DemoMain(String id){
		super(id);
	}

//	public SysOffice getCompany() {
//		return company;
//	}
//
//	public void setCompany(SysOffice company) {
//		this.company = company;
//	}
//
//	public SysOffice getOffice() {
//		return office;
//	}
//
//	public void setOffice(SysOffice office) {
//		this.office = office;
//	}
//
//	public SysUser getUser() {
//		return user;
//	}
//
//	public void setUser(SysUser user) {
//		this.user = user;
//	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public List<DemoChild> getDemoChildList() {
		return demoChildList;
	}

	public void setDemoChildList(List<DemoChild> demoChildList) {
		this.demoChildList = demoChildList;
	}
}